<?php
/**
 * 
 * IndexAction.class.php (后台公共模块)
 *
 * @package     XYCMS
 *
 * @author      Rakiy[Xux851@Gmail.com]
 *
 */
if(!defined("XYCMS")) exit("Access Denied");
class IndexAction extends AdminbaseAction{
    public function index(){
        //parent::_initialize();
        $this->display();
    }
    public function main(){
        //获取MYSQL版本
        $mysql = M()->query('SELECT VERSION() as version;');
        $mysql = !$mysql ? '获取失败,请稍候重试' : $mysql[0]['version'];
        $this->assign('catname','后台首页');
        $this->assign('mysql',$mysql);
        $this->display();
    }
}